.image-mask-uploader {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: Arial, sans-serif;
}
h2 {
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}
.status-message {
  margin: 10px 0;
  padding: 10px;
  background-color: #f8f9fa;
  border-radius: 4px;
  text-align: center;
}
.status-message.error {
  background-color: #f8d7da;
  color: #721c24;
}
.file-selection {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.button-group {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}
button {
  padding: 8px 16px;
  border: 1px solid #ddd;
  background-color: #f0f0f0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
button.active {
  background-color: #e6f7ff;
  border-color: #1890ff;
  color: #1890ff;
}
button.primary-button {
  background-color: #4caf50;
  color: white;
  border: none;
}
.loading-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px 0;
}
.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  border-top: 4px solid #4caf50;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.progress-container {
  width: 80%;
  height: 20px;
  background-color: #f0f0f0;
  border-radius: 10px;
  margin: 10px auto;
  position: relative;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background-color: #4caf50;
  border-radius: 10px;
  transition: width 0.3s ease;
}
.progress-text {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  text-align: center;
  line-height: 20px;
  color: #fff;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
  font-weight: bold;
}
.loading-tips {
  margin-top: 10px;
  font-size: 12px;
  color: #666;
  font-style: italic;
}
.image-preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0;
  justify-content: center;
}
.preview-section {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}
h3 {
  margin-top: 0;
  color: #555;
  text-align: center;
}
canvas {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #f8f9fa;
}
.selection-mode-hint {
  margin-top: 8px;
  padding: 8px;
  background-color: #e6f7ff;
  border-radius: 4px;
  text-align: center;
  font-size: 14px;
  color: #1890ff;
}
.upload-result {
  margin: 10px 0;
  padding: 10px;
  border-radius: 4px;
  text-align: center;
}
.upload-result.success {
  background-color: #d4edda;
  color: #155724;
}
.upload-result.error {
  background-color: #f8d7da;
  color: #721c24;
}
.instructions {
  margin-top: 30px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 4px;
}
.instructions ul {
  padding-left: 20px;
}
.instructions li {
  margin-bottom: 8px;
}
